﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media.Imaging;
using Dominion.WPF.Properties;
using System.Windows;
using System.IO;
using System.Drawing.Imaging;
using System.Drawing;
using System.Resources;
using System.Reflection;
using System.ComponentModel;

namespace Dominion.WPF.Converters
{
    public class CardCountToImageConverter : IValueConverter
    {

        private static global::System.Resources.ResourceManager resourceMan =
            new global::System.Resources.ResourceManager("Dominion.WPF.Properties.Resources", typeof(Resources).Assembly);



        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
           
         
            bool isEmpty = (bool )value;
            string nomCarte = isEmpty ? "none" : "back";
            return ConvertersHelper.ImageFromName(nomCarte);

        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotSupportedException();
        }

        #endregion
    }
}
